package org.kalai.unifypay.pay;

public class BizFactory {

   public static Biz getBizByBizcode(String bizcode) {
      Biz biz = null;
      if ("1001".equals(bizcode) || "1002".equals(bizcode)) {
         biz = new Biz1001();
      } else if ("1003".equals(bizcode) || "1004".equals(bizcode)) {
         biz = new Biz1003();
      } else if ("1005".equals(bizcode) || "1006".equals(bizcode)) {
         biz = new Biz1011();
      } else if ("1007".equals(bizcode) || "1008".equals(bizcode)) {
         biz = new Biz1007();
      } else if ("1009".equals(bizcode) || "1010".equals(bizcode)) {
         biz = new Biz1009();
      } else if ("1013".equals(bizcode) || "1014".equals(bizcode)) {
         biz = new Biz1013();
      }else if ("1015".equals(bizcode) || "1016".equals(bizcode)) {
         biz = new Biz1015();
      } else if ("2001".equals(bizcode) || "2002".equals(bizcode)) {
         biz = new Biz2001();
      } else if ("2003".equals(bizcode) || "2004".equals(bizcode)) {
         biz = new Biz2003();
      } else if ("2005".equals(bizcode) || "2006".equals(bizcode)) {
         biz = new Biz2005();
      } else if ("3001".equals(bizcode) || "3002".equals(bizcode)) {
         biz = new Biz3001();
      } else if ("3003".equals(bizcode) || "3004".equals(bizcode)) {
         biz = new Biz3003();
      } else {
         throw new RuntimeException("#211-业务代码错误");
      }
      return biz;
   }
}
